//
//  PaymentResModel.swift
//  koolcar
//
//  Created by kuaimaxiansheng on 2023/10/19.
//

import UIKit
import ObjectMapper

class PaymentResModel: Mappable {
    var code : String?
    var data : PaymentDataModel?
    var extData : PayExtDataModel?
    var msg : String?
    func mapping(map: Map) {
        code <- map["code"]
        data <- map["data"]
        extData <- map["extData"]
        msg <- map["msg"]
    }
    required init?(map: Map) {
        
    }
}

class PaymentDataModel: Mappable {
    var amount : Double?
    var businessSn : String?
    var createdTime : String?
    var delFlag : Int?
    var expire : String?
    var fee : Double?
    var id : Int?
    var isSuccess : Bool?
    var modifyTime : String?
    var orderId : Int?
    var paymentPluginId : String?
    var paymentPluginName : String?
    var rePayUrl : String?
    var refundAmount : Double?
    var refundStatus : Int?
    var sn : String?
    var type : Int?
    var version : Int?
    func mapping(map: Map) {
        amount <- map["amount"]
        businessSn <- map["businessSn"]
        createdTime <- map["createdTime"]
        delFlag <- map["delFlag"]
        expire <- map["expire"]
        fee <- map["fee"]
        id <- map["id"]
        isSuccess <- map["isSuccess"]
        modifyTime <- map["modifyTime"]
        orderId <- map["orderId"]
        paymentPluginId <- map["paymentPluginId"]
        paymentPluginName <- map["paymentPluginName"]
        rePayUrl <- map["rePayUrl"]
        refundAmount <- map["refundAmount"]
        refundStatus <- map["refundStatus"]
        sn <- map["sn"]
        type <- map["type"]
        version <- map["version"]
    }
    required init?(map: Map) {
        
    }
}

class PayExtDataModel: Mappable {
    var pay : PayModel?
    func mapping(map: Map) {
        pay <- map["pay"]
    }
    required init?(map: Map) {
        
    }
}


class PayModel: Mappable {
    var paymentTransactionSn : String?
    var paymentURL : String?
    func mapping(map: Map) {
        paymentTransactionSn <- map["paymentTransactionSn"]
        paymentURL <- map["paymentURL"]
    }
    required init?(map: Map) {
        
    }
}
